package com.aerotechnic.models;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;
import javax.persistence.OneToMany;;


@Entity
public class PlanningMere extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@OneToOne(fetch = FetchType.EAGER, targetEntity = Visite.class)
	protected Visite visite;
	@OneToMany(fetch = FetchType.EAGER, targetEntity = Jalon.class)
	private Set<Jalon> jalon = new HashSet<Jalon>(0);
	@OneToMany(fetch = FetchType.EAGER, targetEntity = MacroTache.class)
	private Set<MacroTache> macroTache = new HashSet<MacroTache>(0);
	
	
	public Visite getVisite() {
		return visite;
	}
	public void setVisite(Visite visite) {
		this.visite = visite;
	}
	
	public Set<Jalon> getJalon() {
		return jalon;
	}
	public void setJalon(Set<Jalon> jalon) {
		this.jalon = jalon;
	}
	public Set<MacroTache> getMacroTache() {
		return macroTache;
	}
	public void setMacroTache(Set<MacroTache> macroTache) {
		this.macroTache = macroTache;
	}
	
}
